﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Photo.Core.Dtos.Dto
{
    /// <summary>
    /// 系统菜单dto
    /// </summary>
    public class SysMenuDto
    {
        /// <summary>
        /// 菜单唯一标识
        /// </summary>
        public string Unique { get; set; }
        /// <summary>
        /// 菜单名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 路由
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        /// 是否外链
        /// </summary>
        public bool IsOutLink { get;set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; }
        /// <summary>
        /// 类型(菜单/按钮)
        /// menu/btn
        /// </summary>
        public string Type { get; set; } = "menu";
        /// <summary>
        /// 父级菜单标识
        /// </summary>
        public string PUnique { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 子集
        /// </summary>
        public List<SysMenuDto> Child { get; set; }
    }
}
